//
//  ViewController.m
//  YJ-轮播图
//
//  Created by 冀永金 on 16/7/21.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "ViewController.h"
#import "YJCycleImages.h"
#define SCREEN_BOUNDS [UIScreen mainScreen].bounds
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSArray *arr = @[@"0.jpg",@"1.jpg",@"2.jpg",@"3.jpg",@"4.jpg"];
    YJCycleImages *cycle = [[YJCycleImages alloc]initWithFrame:CGRectMake(10, 10, WIDTH, 200)];
    [cycle setImageWithArray:arr];
    [self.view addSubview:cycle];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
